\section{Tzeentch.\-Mosaic Class Reference}
\label{class_tzeentch_1_1_mosaic}\index{Tzeentch.\-Mosaic@{Tzeentch.\-Mosaic}}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct {\bfseries pixel}
\item 
struct {\bfseries pixel\-L\-A\-B}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Mosaic} (Bitmap original\-Bitmap)
\begin{DoxyCompactList}\small\item\em Initializes a new instance of the \doxyref{Mosaic}{p.}{class_tzeentch_1_1_mosaic} class. \end{DoxyCompactList}\item 
{\bf Mosaic} ({\bf Mosaic} mosaic)
\begin{DoxyCompactList}\small\item\em Initializes a new instance of the \doxyref{Mosaic}{p.}{class_tzeentch_1_1_mosaic} class. \end{DoxyCompactList}\item 
void {\bf Mutate} ()
\begin{DoxyCompactList}\small\item\em Mutates this instance. \end{DoxyCompactList}\item 
void {\bf Render\-Bitmap} ()
\begin{DoxyCompactList}\small\item\em Renders the bitmap. \end{DoxyCompactList}\item 
void {\bf Count\-Fitness} ()
\begin{DoxyCompactList}\small\item\em Counts the fitness. \end{DoxyCompactList}\item 
double {\bf Unsafe\-Compare\-Images} ()
\begin{DoxyCompactList}\small\item\em Compares images. \end{DoxyCompactList}\item 
double {\bf Compare\-Images} ()
\begin{DoxyCompactList}\small\item\em Compares the original image with the generated image pixel by pixel and sums the color differences. \end{DoxyCompactList}\item 
pixel\-L\-A\-B {\bf R\-G\-Bto\-L\-A\-B} (pixel input)
\begin{DoxyCompactList}\small\item\em R\-Gs the bto L\-A\-B. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static Random {\bfseries rand}\label{class_tzeentch_1_1_mosaic_a65a085cd3aa2ea1007a28c74a41ea45b}

\end{DoxyCompactItemize}
\subsection*{Properties}
\begin{DoxyCompactItemize}
\item 
List$<$ {\bf Polygon} $>$ {\bf Polygons}\hspace{0.3cm}{\ttfamily  [get, set]}
\begin{DoxyCompactList}\small\item\em Gets or sets the collection of polygons. \end{DoxyCompactList}\item 
Bitmap {\bf Generated\-Image}\hspace{0.3cm}{\ttfamily  [get, set]}
\begin{DoxyCompactList}\small\item\em Gets or sets the generated image. \end{DoxyCompactList}\item 
Bitmap {\bf Original\-Image}\hspace{0.3cm}{\ttfamily  [get, set]}
\begin{DoxyCompactList}\small\item\em Gets or sets the original image. C\-O\-N\-S\-I\-D\-E\-R T\-U\-R\-N\-I\-N\-G I\-N\-T\-O A P\-R\-I\-V\-A\-T\-E F\-I\-E\-L\-D! \end{DoxyCompactList}\item 
double {\bf Fitness}\hspace{0.3cm}{\ttfamily  [get, set]}
\begin{DoxyCompactList}\small\item\em Gets the value indicating how well generated image reflects the original image. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Mosaic@{Mosaic}}
\index{Mosaic@{Mosaic}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Mosaic}]{\setlength{\rightskip}{0pt plus 5cm}Tzeentch.\-Mosaic.\-Mosaic (
\begin{DoxyParamCaption}
\item[{Bitmap}]{original\-Bitmap}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_a0c76e7acf6fe6bcefeb284600416bf89}


Initializes a new instance of the \doxyref{Mosaic}{p.}{class_tzeentch_1_1_mosaic} class. 


\begin{DoxyParams}{Parameters}
{\em original\-Bitmap} & The original bitmap.\\
\hline
\end{DoxyParams}
\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Mosaic@{Mosaic}}
\index{Mosaic@{Mosaic}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Mosaic}]{\setlength{\rightskip}{0pt plus 5cm}Tzeentch.\-Mosaic.\-Mosaic (
\begin{DoxyParamCaption}
\item[{{\bf Mosaic}}]{mosaic}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_af66e61581ea63c7aa19685f0cd8fcfa0}


Initializes a new instance of the \doxyref{Mosaic}{p.}{class_tzeentch_1_1_mosaic} class. 


\begin{DoxyParams}{Parameters}
{\em mosaic} & The mosaic.\\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Compare\-Images@{Compare\-Images}}
\index{Compare\-Images@{Compare\-Images}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Compare\-Images}]{\setlength{\rightskip}{0pt plus 5cm}double Tzeentch.\-Mosaic.\-Compare\-Images (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_a0ebac8fc3319225fea7d44c5d8522db1}


Compares the original image with the generated image pixel by pixel and sums the color differences. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Count\-Fitness@{Count\-Fitness}}
\index{Count\-Fitness@{Count\-Fitness}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Count\-Fitness}]{\setlength{\rightskip}{0pt plus 5cm}void Tzeentch.\-Mosaic.\-Count\-Fitness (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_a12a1eb4a48d7f7b0f50d96a0a398cf06}


Counts the fitness. 

\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Mutate@{Mutate}}
\index{Mutate@{Mutate}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Mutate}]{\setlength{\rightskip}{0pt plus 5cm}void Tzeentch.\-Mosaic.\-Mutate (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_a61b63b91782659e520a14a83bff6d05b}


Mutates this instance. 

\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Render\-Bitmap@{Render\-Bitmap}}
\index{Render\-Bitmap@{Render\-Bitmap}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Render\-Bitmap}]{\setlength{\rightskip}{0pt plus 5cm}void Tzeentch.\-Mosaic.\-Render\-Bitmap (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_a28ef47a133576a9aad505cca0cd51b34}


Renders the bitmap. 

\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!R\-G\-Bto\-L\-A\-B@{R\-G\-Bto\-L\-A\-B}}
\index{R\-G\-Bto\-L\-A\-B@{R\-G\-Bto\-L\-A\-B}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{R\-G\-Bto\-L\-A\-B}]{\setlength{\rightskip}{0pt plus 5cm}pixel\-L\-A\-B Tzeentch.\-Mosaic.\-R\-G\-Bto\-L\-A\-B (
\begin{DoxyParamCaption}
\item[{pixel}]{input}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_afa00d714cbccd7dd68744a071505a65f}


R\-Gs the bto L\-A\-B. 


\begin{DoxyParams}{Parameters}
{\em input} & The input.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pixel struct with L\-A\-B format
\end{DoxyReturn}
\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Unsafe\-Compare\-Images@{Unsafe\-Compare\-Images}}
\index{Unsafe\-Compare\-Images@{Unsafe\-Compare\-Images}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Unsafe\-Compare\-Images}]{\setlength{\rightskip}{0pt plus 5cm}double Tzeentch.\-Mosaic.\-Unsafe\-Compare\-Images (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_tzeentch_1_1_mosaic_aa85f0332d34d62d444e7904edeabdd22}


Compares images. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


\subsection{Property Documentation}
\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Fitness@{Fitness}}
\index{Fitness@{Fitness}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Fitness}]{\setlength{\rightskip}{0pt plus 5cm}double Tzeentch.\-Mosaic.\-Fitness\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}\label{class_tzeentch_1_1_mosaic_a43fbccaf7794e26ee813667b42455ef3}


Gets the value indicating how well generated image reflects the original image. 

\index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Generated\-Image@{Generated\-Image}}
\index{Generated\-Image@{Generated\-Image}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Generated\-Image}]{\setlength{\rightskip}{0pt plus 5cm}Bitmap Tzeentch.\-Mosaic.\-Generated\-Image\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}\label{class_tzeentch_1_1_mosaic_aa19e94ed638cfcb03a20d30e784320dc}


Gets or sets the generated image. 

The generated image. \index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Original\-Image@{Original\-Image}}
\index{Original\-Image@{Original\-Image}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Original\-Image}]{\setlength{\rightskip}{0pt plus 5cm}Bitmap Tzeentch.\-Mosaic.\-Original\-Image\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}\label{class_tzeentch_1_1_mosaic_af0539a4ecbff47ea1951c7bcca8f9423}


Gets or sets the original image. C\-O\-N\-S\-I\-D\-E\-R T\-U\-R\-N\-I\-N\-G I\-N\-T\-O A P\-R\-I\-V\-A\-T\-E F\-I\-E\-L\-D! 

The original image. \index{Tzeentch\-::\-Mosaic@{Tzeentch\-::\-Mosaic}!Polygons@{Polygons}}
\index{Polygons@{Polygons}!Tzeentch::Mosaic@{Tzeentch\-::\-Mosaic}}
\subsubsection[{Polygons}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf Polygon}$>$ Tzeentch.\-Mosaic.\-Polygons\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}\label{class_tzeentch_1_1_mosaic_aa1b20e4e7884baccda805457190e25a2}


Gets or sets the collection of polygons. 

The collection of polygons. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
G\-:/format backup/projekty/\-Tzeentch/trunk/\-Tzeentch/\-Tzeentch/Mosaic.\-cs\end{DoxyCompactItemize}
